import React, {PureComponent} from 'react'
import Icon from 'antd/lib/icon'
import '../../../css/mask.scss'
import classNames from 'classnames'
class Mask extends PureComponent {
    constructor() {
        super()
    }

    componentDidMount() {

    }

    render() {
        const {hideMask, show} = this.props
        const maskClass = classNames({
            'mask-container': true,
            active: this.props.show
        })
        return (
            <div className={maskClass}>
                <div onClick={hideMask} type="close" className='mask-close-icon'>返回</div>
                {this.props.children}
            </div>
        )
    }

}

export default Mask